<div class="custom">
    <h1>
        采购单详情
        <a ui-sref="admin.addLineCustomer" class="btn btn-info pull-right">增加客户</a>
    </h1>
    <table class="table table-bordered">
        <thead>
        <tr>
            <th>订单号</th>
            <th>客户</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr ng-repeat="item in data.resultData">
            <td>{{item.orderId}}</td>
            <td>
                <a ui-sref="admin.updateLineCustomer({lineCustomerId:item.customerId})">{{item.customerId}}</a>
            </td>
            <td>
                <a>详情</a>
            </td>
        </tr>
        </tbody>
    </table>
    <div ng-if="!data.resultData" style="text-align: center">
        加载中...
    </div>

    <uib-pagination ng-change="pageChanged(data.currentPage)" total-items="data.totalSize" ng-model="data.currentPage"
                    items-per-page="data.pageSize" max-size="5" class="pagination-sm" boundary-links="true"
                    rotate="false"></uib-pagination>
</div>